﻿<UserControl x:Class="Probel.Ldoc.Views.Controls.DoctorCardView"
            
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:conv="clr-namespace:Probel.Ldoc.Views.Converters"
             xmlns:t="clr-namespace:Probel.Ldoc.Views.Properties"
             
             mc:Ignorable="d" >
    <UserControl.Resources>
        <conv:BoolToDoctorGenderImageConverter x:Key="BoolToGender"/>
    </UserControl.Resources>
    <Border BorderThickness="5"
            CornerRadius="5"
            Background="#FFF4F8FC">
        <Border.Effect>
            <DropShadowEffect Color="#FFB6B6B6"/>
        </Border.Effect>
        <DockPanel>
            <DockPanel DockPanel.Dock="Top">
                <Image DockPanel.Dock="Left" 
                   Source="{Binding IsFemale, Converter={StaticResource BoolToGender}}"
                   Height="32"
                   Width="32"/>
                <TextBlock DockPanel.Dock="Top"
                           FontWeight="Bold"
                           Width="Auto"
                           HorizontalAlignment="Left" FontSize="14">
                <Run Text="{Binding FirstName}"/>
                <Run Text="{Binding LastName}"/>
                </TextBlock>
                <TextBlock DockPanel.Dock="Bottom"
                           Width="Auto"
                           HorizontalAlignment="Left">
                    <Run Text="{x:Static t:Messages.Lbl_Specialisation}" FontWeight="Bold"/>   
                    <Run Text="{Binding Specialisation.Name}"/>
                </TextBlock>
            </DockPanel>
        </DockPanel>
    </Border>
</UserControl>
